import request from '@/utils/request'

// 查询商家交易订单列表
export function listTransactionRecord(query) {
  return request({
    url: '/system/transactionRecord/list',
    method: 'get',
    params: query
  })
}

// 查询商家交易订单详细
export function getTransactionRecord(transactionId) {
  return request({
    url: '/system/transactionRecord/' + transactionId,
    method: 'get'
  })
}

// 新增商家交易订单
export function addTransactionRecord(data) {
  return request({
    url: '/system/transactionRecord',
    method: 'post',
    data: data
  })
}

// 修改商家交易订单
export function updateTransactionRecord(data) {
  return request({
    url: '/system/transactionRecord',
    method: 'put',
    data: data
  })
}

// 删除商家交易订单
export function delTransactionRecord(transactionId) {
  return request({
    url: '/system/transactionRecord/' + transactionId,
    method: 'delete'
  })
}
